﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true"
    CodeBehind="User.aspx.cs" Inherits="SES.CMS.AdminCP.User" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <fieldset id="details" visible="true" class="fieldset" runat="server">
        <legend>Thay đổi thông tin</legend>
        <div style="margin-top: 10px; padding-left: 150px;">
            <table style="font-size: 12px;" width="100%" cellspacing="0">
                <tr>
                    <td class="style1">
                        Tên đăng nhập:
                    </td>
                    <td>
                        <asp:TextBox ID="ltUsername" Width="250px" runat="server" ReadOnly="false" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="ltUsername" Display="Dynamic" ErrorMessage="*" 
                            ValidationGroup="UserPQ"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr runat="server" id="mkhau">
                    <td class="style1">
                        Mật khẩu cũ:
                    </td>
                    <td>
                        <asp:TextBox ID="ltOldPas" Width="250px" runat="server" TextMode="Password" />
                        (Để trống nếu không thay đổi mật khẩu)
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Mật khẩu:
                    </td>
                    <td>
                        <asp:TextBox ID="ltPassword" Width="250px" runat="server" TextMode="Password" />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="ltPassword" Display="Dynamic" ErrorMessage="*" 
                            ValidationGroup="UserPQ"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Xác nhận mật khẩu:
                    </td>
                    <td>
                        <asp:TextBox ID="ltPassrepeat" Width="250px" runat="server" TextMode="Password" />
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="ltPassword" ValidationGroup="UserPQ"
                            ControlToValidate="ltPassrepeat" ErrorMessage="*"></asp:CompareValidator>
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  ValidationGroup="UserPQ"
                            ControlToValidate="ltPassrepeat" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Họ tên:
                    </td>
                    <td>
                        <asp:TextBox ID="ltFullname" Width="250px" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Email :
                    </td>
                    <td>
                        <asp:TextBox ID="ltEmail" Width="250px" runat="server" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="ltEmail" ValidationGroup="UserPQ"
                            ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Yahoo :
                    </td>
                    <td>
                        <asp:TextBox ID="ltYahoo" Width="250px" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="padding-bottom: 5px;" class="style1">
                        Địa chỉ :
                    </td>
                    <td>
                        <asp:TextBox ID="ltAddress" Width="250px" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Trạng thái:
                    </td>
                    <td>
                        <asp:RadioButton ID="rdCheck" GroupName="status" runat="server" Checked="True" />Đã
                        kích hoạt &nbsp;&nbsp;&nbsp;
                        <asp:RadioButton ID="rdCheck1" GroupName="status" runat="server" />Đã khóa
                    </td>
                </tr>
                <tr>
                    <td style="padding-bottom: 5px;" class="style1">
                        <asp:Label ID="Label1" runat="server" Text="Phân quyền :"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPhanquyen" runat="server" AutoPostBack="True" Height="25px"
                            OnSelectedIndexChanged="ddlPhanquyen_SelectedIndexChanged" Width="198px">
                            <asp:ListItem Value="0">Admin</asp:ListItem>
                            <asp:ListItem Value="1">Nhân viên</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="padding-bottom: 5px;" class="style1" colspan="2">
                        <asp:Panel ID="pnPhanquyen" runat="server" Visible="false">
                            <%--<div class="menuadmin">
                                <asp:Repeater ID="rptMenu" runat="server" EnableTheming="True">
                                    <ItemTemplate>
                                        <asp:CheckBox  CssClass="chkmenuadmin" ID="chkMenu" runat="server" Text='<%#Eval("Name") %>' />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>--%>
                            <div class="menuadmin">
                                <asp:CheckBoxList CssClass="chkmenuadmin" ID="chkListMenu" runat="server" DataTextField="Name" DataValueField="MenuAdminId">
                                </asp:CheckBoxList>
                            </div>
                        </asp:Panel>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="padding-bottom: 5px;" class="style1">
                    </td>
                    <td>
                        <asp:Button ID="btnCapnhat" CssClass="button-gg-green" runat="server" Text="Cập nhập"
                            Visible="true" OnClick="btnCapnhat_Click" ValidationGroup="UserPQ" />&nbsp;
                        <asp:Button ID="btnLamLai" CssClass="button-gg-green" runat="server" Text="Làm lại"
                            Visible="true" OnClick="btnLamLai_Click" CausesValidation="False" />&nbsp;
                        <asp:Button ID="btnHuy" CssClass="button-gg-green" runat="server" Text="Hủy" OnClick="btnHuy_Click"
                            CausesValidation="False" />
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
</asp:Content>
